package com.greyu.ysj.config;

/**
 * @Description:
 * @Author: gre_yu@163.com
 * @Date: Created in 0:42 2018/2/1
 */
public enum ResultStatus {
    SUCCESS(100, "成功"),
    ERROR(200, "失败"),
    
    USERNAME_OR_PASSWORD_ERROR(-1001, "wrong user name or password"),
    USER_NOT_FOUND(-1002, "用户不存在"),
    USER_NOT_LOGIN(-1003, "User not login"),
    
    DATA_NOT_NULL(-1004, "data not null"),
    DATA_IS_NULL(-10041, "要更新的数据不存在"),
    
    USER_HAS_EXISTS(-1005, "user has exists"),

	WALLET_TRANSTER_ERR(-1007,"exchange fail"),
	AVATAR_INPUT_ERROR(-1008,"avatar input error"),
	
	ZERO_VALUE(-1014,"value needs  greater than zero"),
	
	DRAW_MONEY_ERROR(-1029,"Withdrawal amount exceeds assets"),
	DRAW_INSERT_ERROR(-1030,"insert error"),
	ASSET_NOT_FOUND(-1031,"asset not found"),
	VOTE_ZERO(-1032,"vote zero"),
	VOTE_OVERRUN(-1033,"vote not enough"),
	BALLOT_INSERT_ERROR(-1034,"insert error"),
	VOTE_INSERT_ERROR(-1035,"insert error"),
	INSERT_ERROR(-1036,"insert error"),
	COIN_EXIST(-1037,"coin has exist"),
	
	CODE_ERROR(-1038,"验证码错误"),
	CODE_EMPTY(-10381,"验证码不能为空"),
	
	SEND_FAIL(-1039,"send fail"),
	PHONE_ERROR(-1040,"phone error"),
	
	PHONE_ERROR_CN(-1040,"号码错误"),
	
	EMAIL_ERROR(-1041,"email error"),
	INVEST_AMOUNT_ERROR(-1042,"capital not enough"),
	NO_INCOME(-1043,"no income"),
	DRAW_CAPITAL_ERROR(-1044,"draw capital error"),
	PASSWORD_ERROR(-1045,"password error"),
	ZERO(-1046,"0"),
	COIN_SUBMIT(-1047,"coin Under review"),
	IMAGE_NOT_EMPTY(-1048,"image not empty"),
	DRAW_NOT_FOUND(-1049,"draw not found"),
	WALLEAT_FORMAT_ERROR(-1050,"wrong wallet address"),
	DRAW_AMOUNT_ERROR(-1051,Constants.MIN_DRWA_AMOUNT+" start"),
	CBT_WITHDRAW_REPEAT (-1052,"Repeated requests for withdrawal CBT"),
	CBT_WITHDRAW_ERROR (-1053,"CBT withdraw error"),
	PAYLOG_NOT_FOUND (-1054,"payLog not found"),
	SERVER_INTERNAL_ERROR(-1055, "server internal error"),
	NICKNAME_ERROR(-1056, "nickname error"),
	INVEST_MONEY_ERROR(-1057, "investment amount must be greater than 1000 yuan"),
	USER_HAS_SIGNIN(-1058, "user has signed"),
	ID_CARD_NOT_UPLOAD(-1059,"ID card not uploaded"),
	ID_CARD_BEING_REVIEW(-1060,"ID card is being reviewed"),
	ID_CARD_REVIEW_FAILED(-1061,"ID card review failed"),
	PAYPASSWORD_ERROR(-1062,"paypassword error"),
	DATA_NOT_FOUND(-1063,"数据不存在"),
	
	;
    /**
     * 返回码
     */
    private int code;
    /**
     * 返回中文结果描述
     */
    private String message;
    
    
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	ResultStatus(int code, String message) {
		this.code = code;
		this.message = message;
	}
    
}
